﻿using HCQ2_Model;
using HCQ2_Model.SchoolClass;
using HCQ2_Model.ViewModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HCQ2_IBLL
{
    /// <summary>
    /// 班级相关
    /// </summary>
    public partial interface IT_ClassBLL
    {

        /// <summary>
        /// 获取班级列表
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        TableModel GetClassList(SchoolClassListQuery query);

        /// <summary>
        /// 获取学校下面用户用于设置班主任
        /// </summary>
        /// <param name="unit"></param>
        /// <returns></returns>
        List<TeacherSelectList> ListTeacherSelect(string unit);

        /// <summary>
        /// 新增或编辑班级信息，依据主键ID是否为空
        /// </summary>
        /// <param name="schoolClassEdit"></param>
        /// <returns></returns>
        int SaveClass(SchoolClassEdit schoolClassEdit);

        /// <summary>
        /// 删除班级
        /// </summary>
        /// <param name="id">班级ID</param>
        /// <returns>null删除成功，不为空删除失败的错误信息</returns>
        string DelClass(int id);
    }
}
